package com.xingzhi.shortvideosharingplatform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xingzhi.shortvideosharingplatform.model.VideoLike;

public interface VideoLikeService extends IService<VideoLike> {
    
    /**
     * 用户点赞视频
     * @param userId 用户ID
     * @param videoId 视频ID
     * @return 是否成功
     */
    boolean likeVideo(Long userId, Long videoId);
    
    /**
     * 用户取消点赞
     * @param userId 用户ID
     * @param videoId 视频ID
     * @return 是否成功
     */
    boolean unlikeVideo(Long userId, Long videoId);
    
    /**
     * 检查用户是否已点赞视频
     * @param userId 用户ID
     * @param videoId 视频ID
     * @return 是否已点赞
     */
    boolean isVideoLiked(Long userId, Long videoId);
} 